<include file="Public:header" />
<section role="main" class="content-body">
    <header class="page-header"></header>
    <!-- start: page -->
    <section class="panel">
        <header class="panel-heading">
            <h1 class="panel-title">积分转账记录</h1></header>
        <div class="panel-body">
            <div id="datatable-default1_wrapper" class="dataTables_wrapper no-footer">
                <div class="row datatables-header form-inline">
                    <div class="col-sm-12 col-md-6"></div>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered table-striped mb-none dataTable no-footer" id="datatable-default1" role="grid" aria-describedby="datatable-default1_info">
                        <thead>
                            <tr role="row">
								<th  class="sorting_disabled" rowspan="1" colspan="1">序号</th>
								<th  class="sorting_disabled" rowspan="1" colspan="1">转换类型</th>
								<th  class="sorting_disabled" rowspan="1" colspan="1">转换金额</th>
								<th  class="sorting_disabled" rowspan="1" colspan="1">转换时间</th>
								<th  class="sorting_disabled" rowspan="1" colspan="1">转换备注</th>
							</tr>
                        </thead>
                        <tbody>
									<volist name="list['content']" id="vo" key="k">
										<tr>
											<td>{$k}</td>
											<td>{$currency[$change_sys[$vo['sys_id']]['currency_id']]['name']}到{$currency[$change_sys[$vo['sys_id']]['to_currency_id']]['name']}</td>
											<td>{$vo['num']}</td>
											<td>{$vo['add_time']|getDateFormat=###}</td>
											<td>{$vo['remark']}</td>
										</tr>
									</volist>
                        </tbody>
                    </table>
                </div>
                <div class="row datatables-footer">
                    <div class="col-sm-12 col-md-6">
                        <div class="dataTables_info" id="datatable-default1_info" role="status" aria-live="polite">{$list['page']}</div>
					</div>
                </div>
            </div>
        </div>
    </section>
    <aside id="sidebar-right" class="sidebar-right">
        <div class="nano has-scrollbar">
            <div class="nano-content" tabindex="0" style="right: -17px;">
                <a href="#" class="mobile-close visible-xs">回到儀表板
                    <i class="fa fa-chevron-right"></i></a>
            </div>
            <div class="nano-pane" style="display: none; opacity: 1; visibility: visible;">
                <div class="nano-slider" style="height: 631px; transform: translate(0px, 0px);"></div>
            </div>
        </div>
    </aside>
		<script>
				function Revoke(id){
				layer.confirm('是否撤销挂单？', {
				  btn: ['确认','取消'] //按钮
				}, function(){
					$.ajax({
						 type: "POST",
						 url: "{:U('Money/revokeSell')}",
						 data: {'id':id},
						 dataType: "json",
						 error: function(request) {
							layer.closeAll('loading');
							layer.msg("{$Think.lang.系统繁忙请稍后再试}");
						},
						beforeSend: function() {
							var index = layer.load(1, {
							  shade: [0.1,'#fff'] 
							});
						},
						 success: function(data){
								layer.closeAll('loading');
								layer.msg(data['info']);
								if(data['status']==true){
									setTimeout(history.go(0),1000);
								}
							}
					});
				});
			};
				function sureSell(id){
				layer.confirm('确认收款后您的订单将成交', {
				  btn: ['确认','取消'] //按钮
				}, function(){
					$.ajax({
						 type: "POST",
						 url: "{:U('Money/sureSellSub')}",
						 data: {'id':id},
						 dataType: "json",
						 error: function(request) {
							layer.closeAll('loading');
							layer.msg("{$Think.lang.系统繁忙请稍后再试}");
						},
						beforeSend: function() {
							var index = layer.load(1, {
							  shade: [0.1,'#fff'] 
							});
						},
						 success: function(data){
								layer.closeAll('loading');
								layer.msg(data['info']);
								if(data['status']==true){
									setTimeout(history.go(0),1000);
								}
							}
					});
				});
			};
		</script>
    <!-- end: sidebar-right -->
    <!-- end: sidebar-right --></section>
<include file="Public:footer" />